package com.yunchang.springboot.mapper.finance;

import com.yunchang.springboot.models.DO.finance.FinanceOpeningInventory;
import org.apache.ibatis.annotations.Param;

public interface FinanceOpeningInventoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FinanceOpeningInventory record);

    int insertSelective(FinanceOpeningInventory record);

    FinanceOpeningInventory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FinanceOpeningInventory record);

    int updateByPrimaryKey(FinanceOpeningInventory record);

    /**
     * 根据sku和仓库和时间获得期初数据
     * */
    FinanceOpeningInventory getDataBySkuAndWarehouseAndTime(@Param("sku")String sku,@Param("warehouse")String warehouse,@Param("time")String time);
}